//
//  SquashEnum.h
//  SquashSpark
//
//  Created by Coollang on 2017/10/26.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

/* SquashEnum_h */
#ifndef SquashEnum_h
#define SquashEnum_h

#import <UIKit/UIKit.h>

// OpenSans 字体
typedef enum : int {
    OpenSansBold = 0,   
    OpenSansBoldItalic,
    OpenSansExtraBold,
    OpenSansExtraBoldItalic,
    OpenSansItalic,
    OpenSansLight,
    OpenSansLightItalic,
    OpenSansRegular,
    OpenSansSemibold,
    OpenSansSemiboldItalic_0,
    HarabaraMaisBold,
} OpenSansFont;

// 性别
typedef NS_ENUM(NSInteger, Gender){
    GenderFemale      = 0,  ///女
    GenderMale    = 1,///男
    GenderUnknown   = 2,///未知
};

//俱乐部用户类型
typedef NS_ENUM(NSInteger, ClubUserType) {
    ClubUserTypeVisitor,//游客
    ClubUserTypeGeneral,//普通成员
    ClubUserTypeAdmin//管理员
};

// 球拍类别
typedef NS_ENUM(NSInteger, RacquetType){
    RacquetVeryUnKnown = 0,  /// 未知
    RacquetVeryLight   = 1,  ///非常轻拍 110-130grams
    RacquetLight    = 2,    ///轻拍 140-150grams
    RacquetOrdinary   = 3,  ///普通拍 160-170grams
    RacquetHeavy   = 4,     ///重拍 180以上grams
};

typedef NS_ENUM(NSInteger, LoginType){ // 登录方式
    LoginTypeEmail = 0,  /// 邮箱登录
    LoginTypeFacebook  = 1,  ///FaceBook登录
    LoginTypeGoogle = 2,     /// Google 登录
};

typedef NS_ENUM(NSInteger, TrainingTimeSectionType){ 
    TrainingTimeSectionDay = 0,
    TrainingTimeSectionWeek  = 1,
    TrainingTimeSectionMonth = 2,
};

// 举报类型:1.低俗;2.暴力色情;3.人身攻击;4.广告;5.违反当地法律法规;
typedef NS_ENUM(NSInteger, SpotterTopicType){
    kSpotterTopicVulgar = 1,// 低俗
    kSpotterTopicViolentAndPornographic = 2, // 暴力色情
    kSpotterTopicPersonalAttack = 3,    // 人身攻击
    kSpotterTopicAdvertisement = 4,     // 广告
    kSpotterTopicLawsAndRules = 5,     //违反当地法律法规;
};

// 举报ID类型:1.俱乐部;2.留言;3.事件;4.帖子;
typedef NS_ENUM(NSInteger, SpotterIDType){
    SpotterIDTypeClub = 1,
    SpotterIDTypeMessage = 2,
    SpotterIDTypeEvent = 3,
    SpotterIDTypePost = 4
};

/**
 模板类型
 */
typedef NS_ENUM(NSInteger, ThreeDTemplateType) {
    
    ThreeDTemplateTypeUnknow,//未知
    
    ThreeDTemplateTypeForehandHighClear = 1,//正手击高远
    ThreeDTemplateTypeForehandLift = 2,//正手挑球
    ThreeDTemplateTypeForehandSmash = 3,//正手扣杀
    ThreeDTemplateTypeForehandDrive = 4,//正手抽球
    ThreeDTemplateTypeForehandBlock = 5,//正手挡球
    ThreeDTemplateTypeForehandShot = 6,//正手搓球
    ThreeDTemplateTypeForehandDropShot = 7,//正手吊球
    ThreeDTemplateTypeForehandServeHighClear = 8,//正手发高远球
    
    ThreeDTemplateTypeBackhandHighClear = 21,//反手击高远
    ThreeDTemplateTypeBackhandLift = 22,//反手挑球
    ThreeDTemplateTypeBackhandSmash = 23,//反手扣杀
    ThreeDTemplateTypeBackhandDrive = 24,//反手抽球
    ThreeDTemplateTypeBackhandBlock = 25,//反手挡球
    ThreeDTemplateTypeBackhandShot = 26,//反手搓球
    ThreeDTemplateTypeBackhandDropShot = 27,//反手吊球
};

// 创建模板球的类型
typedef NS_ENUM(NSInteger, kSportActionType){
    kSportActionDrop = 0,// 吊球
    kSportActionLop = 1, // 跳球
    kSportActionLength = 2, // 长球
    kSportActionBoast = 3,  // 侧强球
    kSportActionOther = 4,  //其他
};


#endif

@interface SquashEnum:NSObject

+ (NSString *)stringWithGender:(Gender)gender;
+ (NSString *)stringWithTimeSectionType:(TrainingTimeSectionType)sectionType;
+ (TrainingTimeSectionType)timeSectionWithString:(NSString *)string;

+ (NSString *)stringWithSpotterType:(SpotterTopicType)type;
// 获取网络版本需要用到
+ (NSString *)pidStringWithOemType:(OemType)oemType;
+ (NSString *)stringWithRacquet:(RacquetType)racquetType;

+ (NSString *)stringWithSportActionType:(kSportActionType)actionType;

@end


